//
//  AboutViewController.m
//  51-Tour
//
//  Created by xiang ying on 14-3-19.
//  Copyright (c) 2014年 xiang ying. All rights reserved.
//

#import "AboutViewController.h"

@interface AboutViewController (){
    IBOutlet    UITextView  *aboutText;
}

@end

@implementation AboutViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    [self initNavigationItme:[[DataCenter instance] getStringForKey:@"About"]];
    
    UIImageView *icon = [[UIImageView alloc] initWithFrame:CGRectMake(124, 40, 72, 105)];
    icon.image = [UIImage imageNamed:@"about-icon_12"];
    [self.contentView addSubview:icon];
    
    aboutText = [[UITextView alloc] initWithFrame:CGRectMake((320-260)/2, icon.frame.origin.y+icon.frame.size.height+10, 260, 180)];
    aboutText.editable = NO;
    aboutText.font = [UIFont systemFontOfSize:14];
    aboutText.text = [[DataCenter instance] getStringForKey:@"appIntroduce"];//@"“51导游”利用自主知识产权的GPS定位算法，和独家制作的景点GIS地图，为游客提供景区导游、语音讲解、预约导游、优惠门票等贴心、便捷的旅游服务，使游客最大限度地获取景点知识，减少旅游成本，极大改善旅游体验，并为游客和导游提供智能化、专业化综合服务平台。让我们随时开启一次说走就走的旅行吧！";
    aboutText.backgroundColor = [UIColor clearColor];
    [self.contentView addSubview:aboutText];
    
    UILabel *num = [[UILabel alloc] initWithFrame:CGRectMake(0, self.contentView.frame.size.height-40-20, 320, 40)];
    num.backgroundColor = [UIColor clearColor];
    num.text = [[DataCenter instance] getStringForKey:@"companyTel"];//@"联系电话：4001689997";
    num.textColor = [UIColor darkGrayColor];
    num.font = [UIFont boldSystemFontOfSize:15];
    num.textAlignment = NSTextAlignmentCenter;
    [self.contentView addSubview:num];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(void)popself{
    [super popself];
    [[UIManagement shareInstance] showLeft];
}

@end
